using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;

namespace SolanumSolstice.Mapping
{
    public class PathNode
    {
        private int f;
        private int g;
        private int h;
        private PathNode parent;
        private Vector2 position;

        #region Accessors
        public int F
        {
            get
            {
                return (g + h);
            }
            set
            {
                f = value;
            }
        }

        public int G
        {
            get
            {
                return g;
            }
            set
            {
                g = value;
            }
        }

        public int H
        {
            get
            {
                return h;
            }
            set
            {
                h = value;
            }
        }

        public PathNode Parent
        {
            get
            {
                return parent;
            }
            set
            {
                parent = value;
            }
        }

        public Vector2 Position
        {
            get
            {
                return position;
            }
            set
            {
                position = value;
            }
        }
        #endregion

        public PathNode(int g, int h, PathNode parent, Vector2 position)
        {

            this.g = g;
            this.h = h;
            f = g + h;
            this.parent = parent;
            this.position = position;
        }

      
    }
}
